<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/news.css" />
    <link rel="stylesheet" type="text/css" href="../../css/share.css" />
</head>

<body>
    <div id="view" class="content">
        <div class="share_way">
            <p>{{_i18n('选择你分享的地方吧')}}</p>
            <div class="share">
                <!-- <div class="li">
                    <img src="../../image/wx.png" alt="" onclick="_share('session')" />
                    <span>{{_i18n('微信')}}</span>
                </div>
                <div class="li">
                    <img src="../../image/wxq.png" alt="" onclick="_share('timeline')" />
                    <span>{{_i18n('朋友圈')}}</span>
                </div>
                <div class="li">
                    <img src="../../image/qq.png" alt="" onclick="_share('QFriend')" />
                    <span>{{_i18n('QQ')}}</span>
                </div>
                <div class="li">
                    <img src="../../image/qqkong.png" alt="" onclick="_share('QZone')" />
                    <span>{{_i18n('QQ空间')}}</span>
                </div> -->
                <div class="li">
                    <img src="../../image/link.png" alt="" onclick="_link()" />
                    <span>{{_i18n('复制')}}</span>
                </div>
            </div>
            <div class="close">
                <div onclick="_close()">
                    <img src="../../image/x.png" alt="" style="width:20px;" />
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/share.js"></script>
<script type="text/javascript" src="../../script/jquery.js"></script>
<script type="text/javascript" src="../../script/ffkj.js"></script>
<script src="../../script/vue.js"></script>
<script type="text/javascript">
    var view = new Vue({
        el: '#view'
    })
    apiready = function() {
        $api.fixTabBar($api.dom('.close'));
    };

    function _share(type) {
        var share = new Share();
        switch (type) {
            case 'session':
            case 'timeline':
                share.shareWX(type);
                break;
            case 'QFriend':
            case 'QZone':
                share.shareQQ(type);
                break;
            default:
                break;
        }
    }

    $('.content').on('click', function(e) {
        api.closeFrame({});
    })
    $('.content div').on('click', function(e) {
        e.stopPropagation();
    })

    function _close() {
        api.closeFrame({});
    }

    function _link() {
        copyTxt(share_url + '?yq=' + $api.getStorage('userid'))
    }
</script>

</html>